package com.woniuxy.service.impl;

import com.woniuxy.dao.RbacManagerDao;
import com.woniuxy.entity.RbacManager;
import com.woniuxy.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ManagerServiceImpl implements ManagerService {
    @Autowired(required = false)
    RbacManagerDao rbacManagerDao;
    @Override
    public RbacManager findRbacManagerById(int id) {
        return rbacManagerDao.findRbacManagerById(id);
    }

    @Override
    public List<RbacManager> findAllRbacManager() {
        return rbacManagerDao.findAllRbacManager();
    }

    @Override
    public int add(RbacManager rbacManager) {
        return rbacManagerDao.add(rbacManager);
    }

    @Override
    public int managerDelete(int id) {
        return rbacManagerDao.delete(id);
    }

    @Override
    public int updateManager(RbacManager rbacManager) {
        return rbacManagerDao.updateManager(rbacManager);
    }
}
